package org.alvin.gencode;

import java.nio.charset.Charset;
import java.util.Base64;

//
//
//@Slf4j
//@MiniServiceScan("org.alvin.gencode.holiday")
//@Mojo(name = "gen-showdoc-api", defaultPhase = LifecyclePhase.NONE)
public class HolidayMavenPlugin {

//    @Parameter
//    private String config;
//
//    @Override
//    public void execute() {
//        System.getProperties().put("config", this.config);
//        InjectContext.run(HolidayMavenPlugin.class, new String[]{});
//    }
//
//    public static void main(String[] args) {
//        String path = System.getProperty("user.dir").concat(File.separator).concat("src").concat(File.separator).concat("config").concat(File.separator).concat("config.properties");
//        System.getProperties().put("config", path);
//        InjectContext.run(HolidayMavenPlugin.class, args);
//    }

    public static void main(String[] args) {
//       byte [] text = Base64.getDecoder().decode("YkFtOExlOFVXNjJ3MVFwZzFEQW9ndk5UUlhUNzppdGZTMnpGYldsUUFKRmRFcWRoZDRjNzFGMlB6");
//        System.out.println(new String(text));

        //bAm8Le8UW62w1Qpg1DAogvNTRXT7:itfS2zFbWlQAJFdEqdhd4c71F2Pz
        //Sy1ykKpbks96ANdDi7veavdpfIS1:hnQWiqgYsJrl5whB5tPe0SlakYmd

        String text = "Sy1ykKpbks96ANdDi7veavdpfIS1:hnQWiqgYsJrl5whB5tPe0SlakYmd";
        byte[] buff = Base64.getEncoder().encode(text.getBytes(Charset.forName("utf-8")));
        System.out.println("Basic" + new String(buff));

    }

}